package com.example.hjt_java_web_homework2.domain.repository;

import com.example.hjt_java_web_homework2.domain.model.AirConditioner;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Optional;

/**
 * @author Li Chun Hei
 * @date 31/10/2025
 * @description
 */

@Repository
public interface AirConditionerRepository {
    AirConditioner save(AirConditioner airConditioner);
    Optional<AirConditioner> findById(Long id);
    Optional<AirConditioner> findByDeviceId(String deviceId);
    List<AirConditioner> findAll();
    void deleteById(Long id);
    boolean existsByDeviceId(String deviceId);
}
